package com.web.springcloud;

import com.web.myrule.MySelfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
@EnableEurekaClient
//在启动该服务时去加载我们自定义的Ribbon的配置类，从而是配置生效
@RibbonClient(name = "MICROSERVICECLOUD-DEPT",configuration = MySelfRule.class)
@EnableFeignClients(basePackages = {"com.web.springcloud"})
public class ConsumerDeptApp {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerDeptApp.class,args);
    }
}